
module.exports = function (mongoose, Schema) {
    let schema = new Schema({
        //  用户Id
        uid: String,
        //  用户名
        name: String,
        //  收藏列表  {_id: '快讯Id', timestamp: '时间戳'}
        collect: [],
        //  点赞列表 {_id: '快讯Id', timestamp: '时间戳'}
        vote: []
    }, {collection: 'user', timestamps: true});

    return mongoose.model('User', schema);
};

